(function() {

    fetch('/getData?age=11', {
        method: 'POST',
        body: JSON.stringify({
            name: 'aaa'
        }),
        headers: {
            'content-type': 'application/json'
        }
    })
        .then(async (res) => {
            let data = await res.json();
            console.log(data);
        });
    
    fetch('/api/index.html')
        .then(async (res) => {
            let data = await res.text();
            console.log(data);
        })

})()